package com.asen.commons.constants;

/**
 * @program: 公共常量
 * @author: hgc
 * @create: 2018-08-06 10:12
 **/
public class BaseConstant {
    public static final String API_POST_METHOD = "POST";

    public static final String API_GET_METHOD = "GET";

    public static final String IS_DELETED = "isDeleted";

    public static final String UPDATE_BY_ID = "updateById";

    public static final String UPDATE_TIME = "updateTime";

    /**
     * 正常标记
     */
    public static final Integer IS_DELETED_NO = 0;
    /**
     * 删除标记
     */
    public static final Integer IS_DELETED_YES = 1;
    /**
     * 启用
     */
    public static final Integer IS_ENABLED_TRUE = 1;
    /**
     * 禁止
     */
    public static final Integer IS_ENABLED_FALSE = 0;

    /**
     * 项目根路径
     */
    public static final String ABEL_DOMAIN_PATH = "http://admin.cicsc.com";
    public static final String ABEL_WECHAT_DOMAIN_PATH = "http://weixin.cicsc.com";
    public static final String ABEL_PRODUCT = "大创供应链服务平台";


    /**
     * 手机验证码生效时间(单位:毫秒)
     */
    public static final Long LOGIN_CAPTCHA_LIFETIME = 10 * 60 * 1000L;
    public static final Long LOGIN_CAPTCHA_LIMIT_CONTROL = 1 * 60 * 1000L;


    /**
     * ==========================微信模块配置========================
     */
    /**
     * 微信网页应用配置
     */
    public static final String WECHAT_WEBSITE_APP_ID = "wx622051300ea8c48c";
    public static final String WECHAT_WEBSITE_APP_ID_SECRET = "318cd028ee2b48dfc9c7ce9b6be9b2d1";

    /**
     * 微信服务号配置
     */
    public static final String WECHAT_SERVER_APP_ID = "wx0e79576e24d819be";
    public static final String WECHAT_SERVER_APP_SECRET = "5f4959b272efc91a8c72a45b74668d08";
    public static final String WECHAT_SERVER_EVENT_TOKEN = "wechatToken20180408";

    /**
     * 微信小程序配置
     */
    public static final String WECHAT_APPLET_APP_ID = "wx1d169e05ebc40880";
    public static final String WECHAT_APPLET_APP_SECRET = "fe17559aec516e2924f97e4911a44b1c";

    /**
     * 微信推送消息模版
     */
    public static final String MEDIA_ID = "BjtIw73JlH3jZmDLjCOROyWuqQ2zkvjZffc0qTJIM84";
    /**
     * 企业认证推送模版 企业认证结果通知
     */
    public static final String WECHAT_MESSAGE_TEMPLATE_ENTERPRISE_CERT = "HOYY-LI0V6Uz8nuGGvRAxO7WLsRv-NvruQaHcu6qk0M";
    /**
     * 订单逾期，提示客户
     */
    public static final String WECHAT_MESSAGE_TEMPLATE_ORDER_OVERDAY = "mKgKFugtV0hQhD7RWRdX4mW3c7N1G26gJOx5TBLQghE";
    /**
     * 订单状态推送模版
     */
    public static final String WECHAT_MESSAGE_TEMPLATE_STATUS = "FBONS01oRElApXAyeDrAuT0urMUymV7qakesDhpj-Q4";
    public static final String WECHAT_MESSAGE_TEMPLATE_STATUS_URL = ABEL_WECHAT_DOMAIN_PATH + "/#/orderSelect?statusQuery=";
    /**
     * 推送给商务,客户评价模版
     */
    public static final String WECHAT_MESSAGE_TEMPLATE_COMMENT = "UDq5thAym-VPbz6VvBeSn-zWTFWkFn9VAoeQBXzhJ60";
    public static final String WECHAT_MESSAGE_TEMPLATE_COMMENT_URL = ABEL_WECHAT_DOMAIN_PATH + "/#/business/BusinessOrderSelect?statusQuery=";
    /**
     * 推送给客户,商务处理模版
     */
    public static final String WECHAT_MESSAGE_TEMPLATE_REPLY = "P78Q0ed6vY8VrYyD5Dnv0hYadfs-dNGzl5CwsKLE5vY";
    public static final String WECHAT_MESSAGE_TEMPLATE_REPLY_URL = ABEL_WECHAT_DOMAIN_PATH + "/#/orderSelect?statusQuery=";

    /**
     * 推送开启消息推送提醒
     */
    public static final String WECHAT_MESSAGE_OPEN_CONTENT = "尊敬的用户,您好:\n" +
            "\t\t您已开启[大创供应链服务]平台 微信服务号消息推送功能," +
            "在您的订单状态更新后,我们会第一时间通知到您,请注意查收~";

    /**
     * 额度到期推送提醒
     */
    public static final String WECHAT_MESSAGE_QUOTA_OVERDUE = "GoSuMljBji4kG9WytJaRoTzoirCj15rtfIuvlq0uiTM";

    /**
     * 额度不足推送提醒
     */
    public static final String WECHAT_MESSAGE_QUOTA_LACK = "tY5-4BCpZFHlGoffLEVoI7Xoi-LhKDXhYHj_gSg40yo";

    /**
     * 异常线路报警推送提醒
     */
    public static final String WECHAT_MESSAGE_WARN_INFO = "gz2xZ_vAg5O7Cklu7XtZWZCRYFuro8OJqjeTewgNoGE";
    /**
     * ===================短信推送模块配置===============================
     */
    public static final String MESSAGE_MOBILE_PRODUCT = "Dysmsapi";
    public static final String MESSAGE_MOBILE_DOMAIN = "dysmsapi.aliyuncs.com";
    public static final String MESSAGE_MOBILE_ACCESSKEY_ID = "LTAI4FhdVMMSArWtcEwDML63";
    public static final String MESSAGE_MOBILE_ACCESSKEY_SECRET = "lsbKBk4yJBKkJaPQoHjvHbB4Mtq33e";
    public static final String MESSAGE_MOBILE_SIGN_NAME = "大创科技";
    public static final String MESSAGE_MOBILE_CONNECT_TIMEOUT = "10000";
    public static final String MESSAGE_MOBILE_READ_TIMEOUT = "10000";
    /**
     * 手机登录验证码模版，您的验证码：${code}，您正进行身份验证，打死不告诉别人！
     * 验证码：${code}，有效期为 LOGIN_CAPTCHA_LIFETIME 分钟，请勿泄露给他人，如非本人操作，请忽略此信息。
     */
    public static final String SMS_TEMPLATE_CAPTCHA = "SMS_186885138";

    /**
     * 邀标申请通知
     */
    public static final String SMS_INVITE = "SMS_217437758";

    /**
     * 手机注册验证码模版
     * 尊敬的用户，您的注册会员动态密码为：${code}，请勿泄漏于他人！
     */
    public static final String SMS_TEMPLATE_REG_CAPTCHA = "SMS_186885185";
    /**
     * 用户授权验证码模版
     */
    public static final String SMS_TEMPLATE_AUTH_CAPTCHA = "SMS_187240262";
    /**
     * 订单状态推送模版
     */
    public static final String SMS_TEMPLATE_STATUS = "SMS_127151420";
    /**
     * 开启消息推送模版
     */
    public static final String SMS_TEMPLATE_OPEN = "SMS_127161716";
    /**
     * 租户新增成功推送密码模版
     */
    public static final String SMS_TEMPLATE_PASSWORD = "SMS_186946322";
    /**
     * 同一帐号绑定多个租户模版     尊敬的用户,您的平台账号${code}已注册成功并绑定至当前租户。
     */
    public static final String SMS_TEMPLATE_BIND = "SMS_186951210";
    /**
     * 密码重置验证码模板
     */
    public static final String SMS_PWD_RESET = "SMS_186870177";

    /**
     * 合同预警短信模板   您关注的企业${enterprise}，其合同编号${contractNumber}，到期日${expirationDate}，触发合同到期预警，请及时处理。
     */
    public static final String SMS_BIZ_CONTRACT = "SMS_190782599";

    /**
     * 订单还款提醒（内部人员）   您关注的企业${enterprise}的订单(编号${orderNumber}）还款日为${payDate},待还金额${amount}元。请您及时提醒客户还款，以免逾期。
     */
    public static final String SMS_BIZ_ORDER_BEFORE = "SMS_190782605";

    /**
     * 订单逾期提醒（内部）   您关注的企业${enterprise}的订单(编号${orderNumber}）付款日为${payDate},已过期${figure}天,待付金额${amount}元，请您及时处理，以免过期。
     */
    public static final String SMS_BIZ_ORDER_OVERDATE = "SMS_190789143";

    /**
     * 发票预警（内部）-红冲   您关注的企业${enterprise}有${figure}张发票被红冲，总计金额${amount}元，请及时处理。
     */
    public static final String SMS_BIZ_MONITOR_RED = "SMS_192821039";

    /**
     * 发票预警（内部）-作废）   您关注的企业${enterprise}有${figure}张发票已被作废，总计金额${amount}元，请及时处理。
     */
    public static final String SMS_BIZ_MONITOR_CANCEL = "SMS_192821048";

    /**
     * 额度不足提醒   您的客户${enterprise}，产品： ${product}剩余额度已不足20%，请及时处理
     * 账号名称：{{keyword1.DATA}}
     * 可用额度：{{keyword2.DATA}}
     * 提醒时间：{{keyword3.DATA}}
     * 请及时处理。{{remark.DATA}}。
     */
    public static final String SMS_BIZ_QUOTA_LACK = "SMS_192532076";

    /**
     * 额度到期提醒   您关注的企业${enterprise}，产品${product}的额度即将到期，请及时处理
     * 企业名称：{{keyword1.DATA}}
     * 失效日期：{{keyword2.DATA}}
     * 请及时处理。{{remark.DATA}}
     */
    public static final String SMS_BIZ_QUOTA_OVERDUE = "SMS_192577217";

    /**
     * ===================邮箱推送模块==========================
     */
    public static final String MESSAGE_MAIL_CHARSET = "utf-8";
    public static final String MESSAGE_MAIL_PASSWORD = "Dachuang!2018";
    public static final String MESSAGE_MAIL_FROM_MAIL = "noreply@dachuangtech.com";
    public static final String MESSAGE_MAIL_FROM_NAME = "深圳市大创科技信息有限公司";
    public static final String MESSAGE_MAIL_USERNAME = "noreply@dachuangtech.com";

    public static final String MAIL_SUBJECT_STATUS = "订单状态通知邮件";
    public static final String MAIL_SUBJECT_REGISTER = "注册邮箱验证邮件";
    public static final String MAIL_SUBJECT_REGISTER_URL = "/abel-open-service/user/openMailMsg?token=";
    public static final String MAIL_SUBSCRIBE_TOKEN = "MAIL_SUBSCRIBE_TOKEN_";
    public static final Integer MAIL_SUBSCRIBE_TOKEN_LIFETIME = 5 * 60;
    public static final String MAIL_REGULAR = "^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";

    /**
     * 下载文件的最大条数
     */
    public static final Integer MAX_DOWNLOAD_SIZE = 20000;

    /**
     * 下拉框数据的最大条数
     */
    public static final Integer MAX_DOWNBOX_SIZE = 20000;

    /**
     * ===================JWT密钥配置===============================
     */
    /**
     * JWT私钥
     */
    public static final String JWT_SECRET = "u47REBDLrxfd79w";
    /**
     * JWT私钥,过期时间半小时->改为半天6小时
     */
    public static final Long JWT_TOKEN_EXPIRATION = 6 * 60 * 60L;
    /**
     * 系统参数配置 JWT私钥,过期时间 (单位：小时)
     */
    public static final String JWT_TOKEN_TIME = "JWT_TOKEN_TIME";

    /**
     * refreshToken,过期时间1小时->改为半天+1小时=7小时
     * 注意 JWT_REFRESH_TOKEN_EXPIRATION 和 JWT_TOKEN_EXPIRATION 不能设置同样的过期时间，否则会生成同样的token ,无法实现token刷新
     */
    public static final Long JWT_REFRESH_TOKEN_EXPIRATION = 7 * 60 * 60L;

    /**
     * 系统参数配置 refreshToken,过期时间 (单位：小时)  = 用户信息缓存时长
     */
    public static final String JWT_REFRESH_TOKEN_TIME = "JWT_REFRESH_TOKEN_TIME";

    /**
     * 前端携带token头信息
     */
    public static final String AUTH_HEADER = "Authorization";

    /**
     * token信息，不包括Bearer前缀
     */
    public static final String AUTH_TOKEN = "AUTH_TOKEN";

    /**
     * 中央金库 “USD”
     */
    public static final String CENTRAL_TREASURY = "中央金库";

    /**
     * feign服务调用标识
     */
    public static final String FEIGN_SERVER_REQUEST_KEY = "feignServerRequest";

    /**
     * 租户ID
     */
    public final static String TENANT_ID = "TENANT_ID";

    /**
     * 分隔特殊字符“/”
     */
    public static final String SPLIT_SLASH_SIGN = "/";

    /**
     * 分隔特殊字符“,”
     */
    public static final String SPLIT_COMMA_SIGN = ",";

    /**
     * 人民币币别符号 “CNY”
     */
    public static final String CURRENCY_NUMBER_CNY = "CNY";
    /**
     * 美元币别符号 “USD”
     */
    public static final String CURRENCY_NUMBER_USD = "USD";

    /**
     * 外部组织的默认ID TODO 想办法放到系统参数
     */
    public static final Long UNAUTHORIZED_OUTER_ORG_ID = 3900732033925120L;
    /**
     * 未认证组织的默认ID TODO 想办法放到系统参数
     */
    public static final Long UNAUTHORIZED_ORG_ID = 4008552525725696L;
    /**
     * 未认证组织的角色ID TODO 想办法放到系统参数
     */
    public static final Long UNAUTHORIZED_ROLE_ID = 4013428952465408L;

    /**
     * ===================BAIDU开放平台===============================
     */
    /**
     * client_id： 必须参数，应用的API Key
     */
    public static final String BAIDU_SERVER_CLIENT_ID = "Fc5x1wj9hzOcYNhGgdpABnT4";
    //public static final String BAIDU_SERVER_CLIENT_ID = "ltsizh9VwWoXfjTeRYWwy63E";
    /**
     * client_secret： 必须参数，应用的Secret Key；
     */
    public static final String BAIDU_SERVER_CLIENT_SECRET = "Ac8zSIX8OxYqzx3RrQs0GBMLFcgwAk5A";
    //public static final String BAIDU_SERVER_CLIENT_SECRET = "qAXdi6FOG6jaOWf0w6usyc1LeSPgUGqr";
    /**
     * schema_id： 必须参数，人脸识别的方案id；
     */
    //public static final String BAIDU_SERVER_SCHEMA_ID = "10080";
    public static final String BAIDU_SERVER_SCHEMA_ID = "10064";

    /**
     * schema_id： 必须参数，人脸识别的方案id；
     */
    //public static final String BAIDU_SERVER_VIDEO_SCHEMA_ID = "10133";
    public static final String BAIDU_SERVER_VIDEO_SCHEMA_ID = "11074";
    /**
     * 百度人脸识别路径https://brain.baidu.com/face/print/?token=xxx&successUrl=https://xxx&failedUrl=https://xxx
     */
    public static final String BAIDU_FACE_VERIFY_URL = "https://brain.baidu.com/face/print/";

    /**
     * 发票导出模板
     */
    public static final String LIST_INVOICE_TEMPLATE = "/export-template/ap_bill_import_insurance.xlsx";

    public static final String RMB = "人民币";

    /**
     * 旧实体对象
     */
    public final static String OLD_MODEL = "OLD_MODEL";

    /**
     * 0 表示不需要提交工作流;1表示发起工作流;2表示pass工作流
     */
    public final static String WORKFLOW_FLAG = "WORKFLOW_FLAG";

    public static final String EQUAL_PARAMS = "$EQUAL";

}
